package com.fh.web.service;



import com.fh.common.exception.SelfDefinedException;
import com.fh.common.web.AbstractService;
import com.fh.modules.ucas.entity.SysPermission;
import com.fh.modules.ucas.model.TreeModel;

import java.util.List;

/**
 * @author Qiu,Junda
 * @date 2019年4月3日
 * @description 菜单权限表 服务类
 */
public interface ISysPermissionService extends AbstractService<SysPermission> {
	
	public List<TreeModel> queryListByParentId(String parentId);
	
	/**真实删除*/
	public void deletePermission(String id) throws SelfDefinedException;
	/**逻辑删除*/
	public void deletePermissionLogical(String id) throws SelfDefinedException;
	
	public void addPermission(SysPermission sysPermission) throws SelfDefinedException;
	
	public void editPermission(SysPermission sysPermission) throws SelfDefinedException;
	
	public List<SysPermission> queryByUser(String username);
	
	/**
	 * 根据permissionId删除其关联的SysPermissionDataRule表中的数据
	 * 
	 * @param id
	 * @return
	 */
	public void deletePermRuleByPermId(String id);
	
	/**
	  * 查询出带有特殊符号的菜单地址的集合
	 * @return
	 */
	public List<String> queryPermissionUrlWithStar();
}
